import axios from '@/libs/api.request.js'

// 查询施工攻略点赞
export const findLike = (constructionStrategyId) =>{
  return axios.request({
    url: '/api/constructionLike/like/list/'+constructionStrategyId,
    method: "get"
  })
};

// 查询施工攻略收藏
export const findConstruction = (constructionStrategyId) =>{
  return axios.request({
    url: '/api/constructionLike/like/constructionList/'+constructionStrategyId,
    method: "get",
  })
};

// 查询施工攻略收藏总数
export const findConstructionCount = data =>{
  return axios.request({
    url: '/api/constructionLike/like/constructionCount',
    method: "get",
    data:data
  })
};

// 查询施工攻略点赞总数
export const constructionLikeCount = data =>{
  return axios.request({
    url: '/api/constructionLike/like/constructionLikeCount',
    method: "post",
    data:data
  })
};

// 新增施工攻略点赞
export const addLike = data =>{
  return axios.request({
    url: '/api/constructionLike/like/addLike',
    method: "post",
    data:data
  })
};

// 新增施工攻略收藏
export const addConstruction = data =>{
  return axios.request({
    url: '/api/constructionLike/like/addConstruction',
    method: "post",
    data:data
  })
};

// 新增施工攻略评论
export const addRemark = data =>{
  return axios.request({
    url: '/api/system/remark/addRemark',
    method: "post",
    data:data
  })
};

export const findAllList = (constructionStrategyId) =>{
  return axios.request({
    url: '/api/system/remark/findAllList/' + constructionStrategyId,
    method: "get"
  })
}


